import instance from '../utils/request'

// 得到验证码
function getCodeApi (data) {
  return instance({
    url: `/v1_0/sms/codes/${data}`,
    method: 'GET'
  })
}

function loginApi (data) {
  return instance({
    url: '/v1_0/authorizations',
    method: 'post',
    data: data
  })
}
export { getCodeApi, loginApi }
